import request from '@/utils/request'

// 新增得分标签层级配置
export function addLabelOption(data) {
  return request({
    url: '/businessCore/labelAddConfig/insertLabelAddConfig',
    method: 'post',
    data
  })
}

// 修改一级得分标签关系
export function updateOneLabelOption(data) {
  return request({
    url: '/businessCore/labelAddConfig/updateZeroOneLabelRelation',
    method: 'put',
    data
  })
}
// 修改二级得分标签关系
export function updateTwoLabelOption(data) {
  return request({
    url: '/businessCore/labelAddConfig/updateAllLabelRelation',
    method: 'put',
    data
  })
}

// 删除一级得分标签关系
export function delOneLabelOption(id) {
  return request({
    url: '/businessCore/labelAddConfig/deleteZeroOneLabelRelationByIds/' + id,
    method: 'delete'
  })
}
// 删除二级得分标签关系
export function delTwoLabelOption(id) {
  return request({
    url: '/businessCore/labelAddConfig/deleteAllLabelRelationByIds/' + id,
    method: 'delete'
  })
}